package com.tsu.mall.common.mapper;

import com.tsu.mall.common.entity.Attachment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tttttt
 * @since 2023-04-25
 */
public interface AttachmentMapper extends BaseMapper<Attachment> {

    @Select("select * from attachment where source='wares' and source_id=#{waresId}")
    List<Attachment> selectWaresPicsByWaresId(Integer waresId);
}
